# Author:linxuemei
# week04练习

#from datetime import datetime

#odds = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59]

#right_this_minute = datetime.today().minute

#if right_this_minute in odds:
#    print("时间是奇数，时间在odds的数据中")
#else:
#    print("Not an odd minute.")

#from datetime import datetime
#import random
#import time
#odds = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55,57, 59]
#for i in range(5)
#    right_this_minute = datetime.today().minute
#    if right_this_minute in odds:
#        print("时间是奇数，时间在odds的数据中")
#    else:
#        print("Not an odd minute.")
#        wait_time = random.random(1,60)
#       time.sleep(wait_time)


word = "bottles"
for beer_num in range(99,0,-1) :
    # 吧台辣妹讲
    print(beer_num,"瓶",word,"在啤酒瓶上")
    print(beer_num,word,"：瓶")
    print("Take one down")
    print("pass it around")
    # 客户
    if beer_num == 1:
        print("没有更多的雪花啤酒了")
    else :
        new_num = beer_num - 1
        if new_num == 1:
            word = "bottle"
            word = "bottles"
            print(beer_num, "瓶", word, "在啤酒瓶上")

    print()


vowels = ['a','e','i','o','u']
word = "silver"
for letter in word:
    if  letter in word:
        print(letter)

vowels = ['a','e','i','o','u']
word = "silver"
found = []
for letter in word:
    if  letter in vowels:
        if letter not in found:
            found.append(letter)
    for vowels in found:
        print(vowels)

vowels = ['a','e','i','o','u']
word = input("provide a word to search for vowels:")
found = []
for letter in word:
    if  letter in vowels:
        if letter not in found:
            found.append(letter)
for vowels in found:
        print(letter)


phrase = "Don't  panic!"
plist = list(phrase)
print(phrase)
print(plist)

for i in range(4):
    plist.pop()
plist.pop(0)
plist.remove("'")
plist.extend([plist.pop(),plist.pop()])
plist.insert(2,plist.pop(3))

new_phrase = ''.join(plist)
print(plist)
print(new_phrase)